//
//  ZYSportTrackingLine.h
//  LoveSport
//
//  Created by 王朝阳 on 2016/11/10.
//  Copyright © 2016年 wangzhaoyang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MAMapKit.h>
#include "ZYSportPolyline.h"

@interface ZYSportTrackingLine : NSObject

/**
 利用起点和终点绘制运动模型

 @param startLocation 起始点
 @param endLocation 终点
 @return 轨迹追踪线条模型
 */
- (instancetype)initWithStartLocation:(CLLocation *)startLocation endLocation:(CLLocation *)endLocation;
/**
 起始点
 */
@property(nonatomic, strong, readonly) CLLocation *startLocation;
/**
 终点
 */
@property(nonatomic, strong, readonly) CLLocation *endLocation;
/**
 两点之间的运动模型
 */
@property(nonatomic, readonly) ZYSportPolyline *polyline;
/**
 平均速度
 */
@property(nonatomic, readonly) double speed;
/**
 起点和终点之间的时间差值
 */
@property(nonatomic, readonly) NSTimeInterval time;
/**
 起点和终点距离之间的差值
 */
@property(nonatomic, readonly) double distance;
@end
